package com.aaa.snsservice.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/4 17:18
 * @ClassName : MyRule
 * @Description :
 * @Package_Name : com.aaa.snsservice.config
 */
@Configuration
public class MyRule {
    @Bean
    public IRule iRule() {
        return new RandomRule();
    }
}
